import request from '@/utils/request'

// 列表
export function listDocs(query) {
  return request({
    url: '/official/docs/list',
    method: 'get',
    params: {
      isAll: 1,
      ...query
    }
  })
}

// 新增
export function saveDoc(data) {
  return request({
    url: '/official/docs/save',
    method: 'post',
    data: data
  })
}

// 详细
export function getDetail(id,isShow) {
  return request({
    url: '/official/docs/detail',
    method: 'get',
    params:{
        "id":id,
        "isShow":isShow
    }
  })
}

// 删除
export function delDocs(ids) {
  return request({
    url: '/official/docs/delete/' + ids,
    method: 'delete'
  })
}
